/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package demo910;

/**
 *
 * @author Administrator
 */
public class MethodSum1 {
   

    public static void main(String args[]){
        float f1=600.8f;
        int sum1=sum(100,200,290);
        System.out.println(sum1);
        int sum2=sum(300,500);
        System.out.println(sum2);
        double sum3=sum(700.5,900);
        System.out.println(sum3);
        
        
    }
     public static int sum(int a,int b,int c){
       
       return a+b+c;
    }
     public static int sum(int a,int b){
       
       return a+b;
    }
     public static double sum(double a,int b){
       
       return a+b;
    }
    
}
